package io.renren.modules.achievements.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.achievements.dao.ResearchRewardRuleDao;
import io.renren.modules.achievements.entity.ResearchRewardRuleEntity;
import io.renren.modules.achievements.service.ResearchRewardRuleService;


@Service("researchRewardRuleService")
public class ResearchRewardRuleServiceImpl extends ServiceImpl<ResearchRewardRuleDao, ResearchRewardRuleEntity> implements ResearchRewardRuleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ResearchRewardRuleEntity> page = this.page(
                new Query<ResearchRewardRuleEntity>().getPage(params),
                new QueryWrapper<ResearchRewardRuleEntity>()
        );

        return new PageUtils(page);
    }

}